//
//  GPVoiceView.h
//  Keping
//
//  Created by 23 on 2017/12/22.
//  Copyright © 2017年 柯平. All rights reserved.
//

#import <UIKit/UIKit.h>
@class  GPVoiceView;

@protocol GPVoiceViewDelegate <NSObject>

/**
 开始录音
 
 @param voiceView 当前视图
 @param button 录音按钮
 */
- (void)voiceView:(GPVoiceView *)voiceView startRecordVoice:(UIButton *)button;


/**
 结束录音
 
 @param voiceView 当前视图
 @param button 录音按钮
 */
- (void)voiceView:(GPVoiceView *)voiceView endRecordVoice:(UIButton *)button;


/**
 取消录音
 
 @param voiceView 当前视图
 @param button 录音按钮
 */
- (void)voiceView:(GPVoiceView *)voiceView cancelRecordVoice:(UIButton *)button;


/**
 手指拖拽出录音按钮范围外
 
 @param voiceView 当前视图
 @param button 录音按钮
 */
- (void)voiceView:(GPVoiceView *)voiceView dragOutside:(UIButton *)button;


/**
 手指拖拽到录音按钮范围内
 
 @param voiceView 当前视图
 @param button 录音按钮
 */
- (void)voiceView:(GPVoiceView *)voiceView dragInside:(UIButton *)button;

@end


@interface GPVoiceView : UIView

/**代理*/
@property(nonatomic,weak) id<GPVoiceViewDelegate> delegate;

- (void)updateVoiceTimesecond:(double)time;

@end
